package ThreadBasic.Single;

import java.util.Scanner;

/**
 * @author yyh
 * @create 2020-10-22 10:48
 */
public class Low {
    static String string = "";

    public static int testF() {
        int result = 1;
        try {
            result += 2;
            return result;
        } catch (Exception e) {
            return 0;
        } finally {
            result += 3;
            System.out.println("finally2");
//            return result;
        }



    }

    public static void testF2(int i ) {

        try {
            if(i == 1){
                throw new Exception("jjjjjjj");
            }
        } catch (Exception e) {
            string += "2";
            return;
        } finally {
            string += "3";

        }

        string += "4";


    }


    public static void main(String[] args) {

        testF2(1);
    }
}
